package com.microservices.auth.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * 职位表
 *
 * @author daiqiaohong
 * @since 2025年1月13日
 */
@Getter
@Setter
@TableName("position")
@Schema(description = "职位表")
public class PositionEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("position_code")
    @Schema(description = "职位Code")
    private String positionCode;

    @TableField("position_name")
    @Schema(description = "职位名称")
    private String positionName;

    @TableField("parent_position_id")
    @Schema(description = "父级职位ID")
    private Long parentPositionId;

    @TableField("description")
    @Schema(description = "职位描述")
    private String description;

    @TableField("status")
    @Schema(description = "职位状态（0正常 1停用）")
    private int status;

}
